﻿using System;
using System.ComponentModel;
using System.Web.Services;
using BLL.RF.ATETest;
using Model.RF.ATETest;

/// <summary>
///TwoDimensionSN_L5_Service 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
//若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。 
// [System.Web.Script.Services.ScriptService]
public class TwoDimensionSN_L5_Service : System.Web.Services.WebService
{
    private TwoDimensionSN test;

    public TwoDimensionSN_L5_Service()
    {

        //如果使用设计的组件，请取消注释以下行 
        //InitializeComponent(); 
        test = new TwoDimensionSN();
    }

    //[WebMethod]
    //public string HelloWorld()
    //{
    //    return "Hello World";
    //}

    [WebMethod(Description = "通过成品序列号（发货条码）检索二维条码")]
    public string TwoDimensionSN_GetbySN(string productSN)
    {
        string tdSN = test.TwoDimensionSN_GetTDSNbySN(productSN);
        return tdSN;
    }
}

